import request from '@/utils/request.js'

// 组织架构获取
export function companyDepartment () {
  return request({
    url: '/company/department'
  })
}

// 新增组织架构
export function companyDepartmentPost (data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 删除组织架构
export function companyDepartmentDle (id) {
  return request({
    url: '/company/department/' + id,
    method: 'delete'
  })
}

// 编辑
export function companyDepartmentPut (data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}